import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [{
    //   默认路由，访问父路劲，默认访问为空的路劲子页面
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/index.vue'),
    meta: { title: '员工', icon: 'people' }
  },
  {
    // 员工详情 查看
    // 路由传参 1:
    //      /:id
    // 路由传参quary 2:
    // http://localhost:9528/#/employees/detail/123?username=zs&age=20
    path: 'detail/:id',
    name: 'detail',
    component: () => import('@/views/employees/detail.vue'),
    hidden: true,
    props: true
  },
  // 配置打印页面的路由👇
  {
    path: 'print/:id',
    name: 'print',
    component: () => import('@/views/employees/print.vue'),
    hidden: true,
    props: true
  }
  ]
}
